package com.pxst.integration.controller;

import com.pxst.integration.service.SysSelectOptionConfigEntityService;
import com.pxst.resp.ApiResp;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.validation.constraints.NotNull;

/**
 * @author Chrissy
 * @description 接入信息相关接口
 * @since 2023-11-14 18:20:23
 */
@Api(tags = "接入信息相关接口")
@RestController
@RequestMapping("/integration")
public class IntegrationController {

    @Resource
    private SysSelectOptionConfigEntityService service;


    @ApiOperation("/接入信息初始化接口")
    @GetMapping("/index")
    public ApiResp index(@RequestParam(value = "merchantId") @NotNull(message = "商户Id不能为空") Long merchantId) {
        return service.index(merchantId);
    }
}
